package com.qnkf.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.qnkf.model.ResultModel;
import com.qnkf.service.BaseService;
import com.qnkf.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Dercsription
 * @Author Administrator
 * @CreateDate 2021/8/27 17:09
 **/
@Service
@Transactional
public class UserServiceImpl extends BaseService implements UserService {
    /**
     * 测试
     * @param request
     * @return
     */
    @Override
    public ResultModel test(JSONObject request) {
        JSONObject model = userMapper.test();
        if (request != null){
            model.putAll(request);
        }
        return ResultModel.success(model);
    }
}
